Skip to content

feat: implement Phase 2 vector storage toolbox - #15

Merged
Teng91 merged 1 commit into
masterfrom
feat/phase2-toolbox
Jun 2, 2026
Merged

feat: implement Phase 2 vector storage toolbox#15
Teng91 merged 1 commit into
masterfrom
feat/phase2-toolbox

Conversation

@Teng91

@Teng91 Teng91 commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Replace the old LLM/RAG architecture with a standalone toolbox that receives pre-chunked, pre-embedded data from scrape-and-analyze.

  • Add POST /tools/chunks endpoint for storing article chunks with dense (pgvector) and sparse (JSONB) embeddings
  • New spec: specs/toolbox-api.md (external integration contract)
  • Updated specs: specs/rag-pipeline.md, specs/integration.md
  • Database schema: articles + article_chunks tables with HNSW index
  • Alembic migration: 002_toolbox_schema.py
  • Service: ToolboxService with upsert semantics and dimension validation
  • Contracts: ArticleInfo, ChunkData, StoreChunksRequest/Response
  • Tests: 24 passing (contracts, service, routers)
  • Delete old LLM provider code, RAG chain/retriever, chat router
  • Update CLAUDE.md, pyproject.toml for new architecture

Replace the old LLM/RAG architecture with a standalone toolbox
that receives pre-chunked, pre-embedded data from scrape-and-analyze.

- Add POST /tools/chunks endpoint for storing article chunks
  with dense (pgvector) and sparse (JSONB) embeddings
- New spec: specs/toolbox-api.md (external integration contract)
- Updated specs: specs/rag-pipeline.md, specs/integration.md
- Database schema: articles + article_chunks tables with HNSW index
- Alembic migration: 002_toolbox_schema.py
- Service: ToolboxService with upsert semantics and dimension validation
- Contracts: ArticleInfo, ChunkData, StoreChunksRequest/Response
- Tests: 24 passing (contracts, service, routers)
- Delete old LLM provider code, RAG chain/retriever, chat router
- Update CLAUDE.md, pyproject.toml for new architecture

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Teng91 Teng91 self-assigned this Jun 2, 2026
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Coverage

Test Coverage
FileStmtsMissCoverMissing
src/chatbot_plugin
   __init__.py00100% 
   config.py70100% 
   db.py14378%26–28
   main.py10280%22–23
   routers.py100100% 
   service.py320100% 
src/chatbot_plugin/contracts
   __init__.py30100% 
   requests.py150100% 
   responses.py40100% 
src/chatbot_plugin/models
   __init__.py30100% 
   article.py19194%48
   chunk.py19194%47
TOTAL136794% 

Tests Skipped Failures Errors Time
24 0 💤 0 ❌ 0 🔥 0.194s ⏱️

@Teng91
Teng91 merged commit e046f43 into master Jun 2, 2026
1 check passed
@Teng91
Teng91 deleted the feat/phase2-toolbox branch June 2, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant